package cn.itsource.ymcc.client;

import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@FeignClient(value = "service-course",fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {

    @GetMapping("/courseUserLearn/findByCourseId/{courseId}/{userId}")
    JsonResult findByCourseId(@PathVariable("courseId") Long courseId,@PathVariable("userId")Long userId);
}
